--- 战斗主类
---
--- @class FightResult
FightResult = ClientFight.CreateClass("FightResult")
local FightResult = FightResult

--- @public
--- @return FightResult
function FightResult:ctor(team, site)

    --伤害数值*/
    self.damage = 0;

    self.originalDamage = 0;
    --[[
    * 状态，包含这次伤害是否被闪避等
    * {@link DamageResultTypeEnum}
    */]]
    self.state = 0;

    --[[
    * 伤害类型 {@link com.game.fight.enums.SkillDamageTypeEnum}
    */]]
    self.damageType = 0;

    -- 本次伤害禁能 */
    self.NO_ENERGY = false;


end  --[[
    * 是否造成伤害
    * @return
    */]]
function FightResult:isDamage()
    return (self.damage ~= 0);
end

function FightResult:getDamage()
    return self.damage;
end

function FightResult:setDamage(damage)
    self.damage = damage;
    if (self.originalDamage == nil) then
        self.originalDamage = damage;
    end
end

function FightResult:getState()
    return self.state;
end

function FightResult:setState(state)
    self.state = state;
end

function FightResult:getDamageType()
    return self.damageType;
end

function FightResult:setDamageType(damageType)
    self.damageType = damageType;
end

function FightResult:isNO_ENERGY()
    return self.NO_ENERGY;
end

function FightResult:setNO_ENERGY(NO_ENERGY)
    self.NO_ENERGY = NO_ENERGY;
end

function FightResult:getOriginalDamage()
    if (self.originalDamage == nil) then
        return 0;
    end
    return self.originalDamage.longValue();
end
